package com.reader.api.entity.magazine;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* @@description 
* @author        jiahaikun
* @date          2018-11-06
*/
@TableName("reader_magazine")
public class ReaderMagazine extends Model<ReaderMagazine> {

private static final long serialVersionUID = 1L;





private String id;

/**
* 年份
*/


private Integer year;

/**
* 刊期，公共代码，PERIOD　1 1期，2期，共24期
*/


private Integer period;

/**
* 刊号
*/


private Integer number;

/**
* 封面图片
*/


private String cover;

/**
* 发布时间
*/

@TableField("publish_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date publishDt;

/**
* 公共代码：CONT_STAT内容状态,Publish 发布，withdraw下架，quartz定时，
*/


private String state;

/**
* 杂志介绍
*/


private String introduction;

/**
* 商品实际价格
*/


private BigDecimal price;

/**
* 划线价格 相当于原价
*/

@TableField("lineation_price")

private BigDecimal lineationPrice;



private Integer enable;


@TableField("del_flag")

private Integer delFlag;


@TableField("insert_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date insertDt;


@TableField("insert_user_id")

private Integer insertUserId;


@TableField("updt_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updtDt;


@TableField("updt_user_id")

private Integer updtUserId;


public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public Integer getYear() {
return year;
}

public void setYear(Integer year) {
this.year = year;
}

public Integer getPeriod() {
return period;
}

public void setPeriod(Integer period) {
this.period = period;
}

public Integer getNumber() {
return number;
}

public void setNumber(Integer number) {
this.number = number;
}

public String getCover() {
return cover;
}

public void setCover(String cover) {
this.cover = cover;
}

public Date getPublishDt() {
return publishDt;
}

public void setPublishDt(Date publishDt) {
this.publishDt = publishDt;
}

public String getState() {
return state;
}

public void setState(String state) {
this.state = state;
}

public String getIntroduction() {
return introduction;
}

public void setIntroduction(String introduction) {
this.introduction = introduction;
}

public BigDecimal getPrice() {
return price;
}

public void setPrice(BigDecimal price) {
this.price = price;
}

public BigDecimal getLineationPrice() {
return lineationPrice;
}

public void setLineationPrice(BigDecimal lineationPrice) {
this.lineationPrice = lineationPrice;
}

public Integer getEnable() {
return enable;
}

public void setEnable(Integer enable) {
this.enable = enable;
}

public Integer getDelFlag() {
return delFlag;
}

public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}

public Date getInsertDt() {
return insertDt;
}

public void setInsertDt(Date insertDt) {
this.insertDt = insertDt;
}

public Integer getInsertUserId() {
return insertUserId;
}

public void setInsertUserId(Integer insertUserId) {
this.insertUserId = insertUserId;
}

public Date getUpdtDt() {
return updtDt;
}

public void setUpdtDt(Date updtDt) {
this.updtDt = updtDt;
}

public Integer getUpdtUserId() {
return updtUserId;
}

public void setUpdtUserId(Integer updtUserId) {
this.updtUserId = updtUserId;
}

@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "ReaderMagazine{" +
	", id=" + id +
	", year=" + year +
	", period=" + period +
	", number=" + number +
	", cover=" + cover +
	", publishDt=" + publishDt +
	", state=" + state +
	", introduction=" + introduction +
	", price=" + price +
	", lineationPrice=" + lineationPrice +
	", enable=" + enable +
	", delFlag=" + delFlag +
	", insertDt=" + insertDt +
	", insertUserId=" + insertUserId +
	", updtDt=" + updtDt +
	", updtUserId=" + updtUserId +
"}";
}
}